@height1: calc(100% - 60px);
@height2: calc(100% - 258px);
@height-top: 56%;
@height-bottom: 44%;
@border: 1px solid #e9e9e9;
@borderRadius: 8px;

.borderStyle {
  border: @border;
  border-radius: @borderRadius;
}

.top1,
.top2 {
  height: @height-top;
  background: #fff;
  border-radius: 14px;
}

.bottom1,
.bottom2 {
  height: @height-bottom;
}

.top1,
.bottom1 {
  padding-right: 10px;
}

.top2,
.bottom2 {
  padding-left: 10px;
}

.content {
  width: 100%;
  height: 100%;
  min-height: 960px;
  margin: 0 !important;
  padding: 0 20px 20px 20px;
  background: #fff;
  .location,
  .area,
  .dispatch {
    position: relative;
    flex: 1;
  }
  .location {
    height: @height1;
    max-height: @height1;
    overflow: hidden;
    .borderStyle;
  }

  .device {
    position: relative;
    display: flex;
    height: @height2;
    .borderStyle;
    .deviceInfo {
      display: flex;
      min-width: 220px;
      // padding-right: 40px;
    }
    .deviceCharts {
      flex: auto;
    }
  }
}
.areaCharts {
  width: 100%;
  height: 244px;
}
.dispatchRight {
  width: 100%;
  height: 244px;
}
.infoContent {
  display: flex;
  .info {
    display: flex;
    flex: 1 1;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 18px 0;
  }
}
.dateData {
  position: relative;
  min-height: 160px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  :global(.title) {
    padding: 22px 0 8px 26px;
    font-weight: bold;
  }
  :global(.content) {
    display: flex;
    width: calc(100% - 106px);
    margin: 0;
    padding: 0;
    .infoItem {
      width: 20%;
      text-align: center;
    }
    .infoNumber {
      position: relative;
      display: inline-block;
      height: 47px;
      color: #666;
      line-height: 47px;
      white-space: nowrap;
      span {
        margin-right: 4px;
        color: #1d1d1f;
        font-weight: 500;
        font-size: 40px;
      }
      img {
        position: absolute;
        top: 6px;
        right: -10px;
      }
    }
    .title {
      color: #646464;
      font-weight: 400;
    }
  }
  :global(.rightpart) {
    position: absolute;
    right: 60px;
    bottom: 10px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    li {
      line-height: 40px;
      &:first-child {
        div {
          background: #52cca3;
        }
        span {
          color: #52cca3;
        }
      }
      &:last-child {
        div {
          background: #bdc0c7;
        }
        span {
          color: #bdc0c7;
        }
      }
      div {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-right: 10px;
        vertical-align: middle;
        border-radius: 7px;
      }
    }
  }
}
.infoItem {
  display: inline-flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  .infoTitle {
    height: 30px;
    color: #666;
    line-height: 30px;
    .infoTitleSpan {
      display: inline-block;
      padding: 0 12px;
      color: #666;
      background: #f2f2f2;
      border-radius: 4px;
    }
  }

  .infoPer {
    color: #666;
    font-weight: 400;
    white-space: nowrap;
    span {
      color: #3ebc61;
      font-weight: 500;
    }
  }
}

.titleMain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;

  .titleContent {
    color: #1d1d1f;
    font-weight: 500;
    font-size: 16px;
  }

  .titleAction {
    height: 30px;
    padding: 0 9px;
    color: #666;
    font-size: 16px;
    line-height: 30px;
    background: #f2f2f2;
    border-radius: 4px;
  }
}

.radioGroup {
  position: absolute;
  top: 16px;
  left: 24px;
  z-index: 98;
  :global {
    .ant-radio-button-wrapper {
      height: 30px;
      line-height: 30px;
    }
  }
}
.radioGroup1 {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 98;
  :global {
    .ant-radio-button-wrapper {
      height: 30px;
      line-height: 30px;
    }
  }
}

.chartButton {
  position: absolute;
  top: 31px;
  right: 48px;
  z-index: 100;
  :global(.ant-radio-button-wrapper-checked) {
    color: #fff !important;
    background: #fff;
    border: 1px solid #4890ff;
    border-radius: 4px;
  }
  :global(.ant-radio-button-wrapper) {
    color: #4890ff;
  }
  span {
    font-size: 14px;
  }
}
.ranking {
  width: 254px !important;
  margin: 0 auto;
  th,
  td {
    padding: 0 !important;
    line-height: 48px !important;
    text-align: center !important;
    border-bottom: none !important;
  }
}

.pieChart {
  position: relative;
  height: 296px;
  margin-top: 18px;
  background: #fff;
  border-radius: 14px;
  &::before {
    position: absolute;
    top: 78px;
    left: 62px;
    width: 190px;
    height: 190px;
    background-color: rgba(108, 129, 249, 0.08);
    border-radius: 50%;
    content: ' ';
  }
}
